//
//  MyViewController.m
//  CarStore
//
//  Created by 千锋 on 16/1/25.
//  Copyright (c) 2016年 1000phone. All rights reserved.
//

#import "MyViewController.h"
#import "UIScrollView+Scale.h"
#import "RegisterViewController.h"
#import "LoginViewController.h"


@interface MyViewController ()
@property (weak, nonatomic) IBOutlet UIButton *loginBtn;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;

@end

@implementation MyViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.navigationController.navigationBar.translucent = NO;
    [self addScaleView];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)addScaleView
{
    [self.tableView addScaleImageViewWithImage:[UIImage imageNamed:@"image003.jpg"]];
}

- (IBAction)loginBtnClicked:(UIButton *)sender {
    UIStoryboard *sb = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
    LoginViewController *loginVC = [sb instantiateViewControllerWithIdentifier:@"LoginViewController"];
    
    self.hidesBottomBarWhenPushed = YES;
    [self.navigationController pushViewController:loginVC animated:YES];
    self.hidesBottomBarWhenPushed = NO;
}

- (IBAction)signOutClicked:(UIButton *)sender {
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    [tableView deselectRowAtIndexPath:indexPath animated:YES];
    
    
}

@end
